import unittest

from secoundZuoYe import sanjiaoxing


class MyTestCase(unittest.TestCase):
    def setUp(self) -> None:
        print('测试开始')
    def test_sanjiaoxing1(self):
        r=sanjiaoxing()
        self.assertEqual(r, '等边三角形')
    def test_sanjiaoxing2(self):
        r2=sanjiaoxing();
        self.assertEqual(r2,'等腰三角形')
    def test_a(self):
        r3=sanjiaoxing()
        self.assertEqual(r3,'普通三角形')
    def tearDown(self) -> None:
        print('测试结束')



if __name__ == '__main__':

    # unittest.main()
    ts=unittest.TestSuite()
    ts.addTest(MyTestCase("test_sanjiaoxing1"))
    ts.addTest(MyTestCase('test_a'))
    ts.addTest(MyTestCase('test_sanjiaoxing2'))
    tr=unittest.TextTestRunner()
    tr.run(ts)


